package com.wu.system.controller.wx;

import com.wu.common.page.PageResult;
import com.wu.common.utils.Result;
import com.wu.dao.weixin.vo.WeixinNewsitemVo;
import com.wu.service.sys.query.WeixinNewsitemQuery;
import com.wu.service.weixin.service.WeixinNewsitemService;
import com.wu.service.weixin.service.WeixinNewstemplateService;
import com.wu.service.weixin.service.WeixinTemplateService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


/**
* 描述：</b>图文模板素材表<br>
* @author weijian.zhang
* @since：2018年07月13日 12时46分36秒 星期五
* @version:1.0
*/
@RestController
@RequestMapping("/wx/weixinNewsitem")
public class WeixinNewsitemController{

 public final static Logger log = LoggerFactory.getLogger(WeixinNewsitemController.class);
 @Autowired
 private WeixinNewsitemService weixinNewsitemService;
 @Autowired
 private WeixinNewstemplateService weixinNewstemplateService;
 @Autowired
 private WeixinTemplateService weixinTemplateService;



    /**
 * 列表页面
 * @return
 */
@RequestMapping(value="list",method = {RequestMethod.GET, RequestMethod.POST})
public Result<PageResult<WeixinNewsitemVo>> getList(@ModelAttribute WeixinNewsitemQuery query) throws Exception{
    PageResult<WeixinNewsitemVo> page = weixinNewsitemService.queryPageList(query);
    return Result.ok(page);
}




}

